package com.kamistoat.ruoyi.ruoyimodulessystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kamistoat.ruoyi.ruoyiapisystem.domain.SysLogininfor;
import com.kamistoat.ruoyi.ruoyicommoncore.utils.page.PageUtils;
import com.kamistoat.ruoyi.ruoyiapisystem.entity.SysLogininforEntity;

import java.util.List;
import java.util.Map;

/**
 * 系统访问记录
 *
 * @author kamistoat
 * @email linjianshanke@163.com
 * @date 2022-08-09 10:34:46
 */
public interface SysLogininforService extends IService<SysLogininforEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SysLogininforEntity> selectLogininforList(SysLogininfor sysLogininfor);

    /**
     * 批删
     */
    boolean deleteLogininforByIds(Long[] infoIds);

    /**
     * 清空系统中所有人的登陆日志
     */
    void cleanLogininfor();

    /**
     * 新增一条登录日志。只会在内部间调用
     */
    boolean insertLogininfor(SysLogininforEntity sysLogininforEntity);
}

